/*
 * Main.fx
 *
 * Created on 06.09.2009, 20:40:13
 */

package javafx179labs.mikhalin.lab1;
import javafx.stage.*;
import javafx.scene.*;

import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.transform.*;
import javafx.scene.effect.*;



/**
 
 */

Stage {
    title: "Композиция"
    width: 650
    height: 450
    scene: Scene {
       content: Group{
             content: [
                
          Rectangle {
                    transforms: [Rotate{ angle: 45, pivotX: 30, pivotY: 30}]
                    width: 140, height: 70
                    fill: Color.CRIMSON
                }
                Text {
                    transforms: [Rotate{ angle: 45, pivotX: 30, pivotY: 30}]
                    font: Font { size: 24 }
                    x: 270, y: 50
                    fill: Color.BLUE
                    content: "Привет!"
                    effect: DropShadow{ offsetX: 3 offsetY: 3}

                }
 Rectangle {
            x: 400
            y: 20
            height: 50
            width: 70
            arcHeight: 20
            arcWidth: 20
            fill: Color.LIGHTGREEN
            stroke: Color.BLACK
            strokeWidth: 2
        }

Path {
            elements:[
                MoveTo{ x: 310, y: 10 },
                LineTo{ x: 370, y: 10 },
                LineTo{ x: 370, y: 70 },
                LineTo{ x: 320, y: 70 },
                LineTo{ x: 320, y: 30 },
                LineTo{ x: 350, y: 30 },
                LineTo{ x: 350, y: 40 },
                LineTo{ x: 350, y: 50 },
            ]
            stroke: Color.GREEN
        }
            Rectangle{
                x: 30
                y: 40
                width: 60
                height: 50
                fill: Color.WHITE
                stroke: Color.GREEN
            },
            Rectangle{
                transforms: Rotate{ angle: 30 pivotX: 60 pivotY: 65 }
                x: 30
                y: 40
                width: 60
                height: 50
                fill: Color.ORANGE
                stroke: Color.GREEN
            }
Circle{
                centerX: 180
                centerY: 380
                radius: 50
                fill: Color.WHITE
                stroke: Color.GREEN
            },Rectangle{
                x : 170 y : 370
                width: 110 height: 80
                fill: Color.WHITE
                stroke: Color.ORANGE
            },
            ShapeIntersect{
                a: Circle{
                    centerX: 180
                    centerY: 380
                    radius: 50
                }
                b: Rectangle{
                    x : 170 y : 370
                    width: 110 height: 80
                }
                fill: Color.ORANGE
                stroke: Color.GREEN
            }
Circle {
                centerX: 500, centerY: 100
                radius: 40
                fill: Color.DARKORANGE
              effect: DropShadow {
                        color: Color.BLACK
                        radius: 15
                        offsetX: 10
                        offsetY: 5
                    }

}
Rectangle {
                x: 450, y: 200
                width: 140, height: 70
                arcWidth:20 arcHeight:20
                fill: Color.YELLOW
                effect: InnerShadow {
                        color: Color.DARKGREEN
                        radius: 20
                        choke: 0.5
                        offsetX: -10
                        offsetY: -10

                    }
            }

            Polygon {
                points: [
                 400.0, 150.0,
                 200.0, 90.0,
                 400.0, 100.0
                ]
                fill: Color.LIME
               
                }

               Path {
                    elements: [
                     MoveTo { x: 400    y: 100},
                     LineTo { x: 400  y: 200},

                             ]
              
              stroke: Color.PURPLE
         }

Polygon {
                points: [
                 10.0,  150.0,
                 50.0, 130.0,
                 40.0, 110.0,
                 15, 120,
                 100, 150

                ]
                fill: Color.GOLD
                effect: MotionBlur { radius: 15 angle: -30 }

                }
        ]
}
    }
}

